string = '{0} love {1} {2}'.format("i",'you','python')
print(string)
string2 = '{a} love {b} {c}'.format(a = "i",b = 'you',c = 'python')
print(string2)

string3 = '{0:.1f}{1}'.format(27.15,'gb')
print(string3)

print("==" * 18)
#ACSII
print("%c %c %c"%(97, 98, 99))
print("my name is %s"%'zhangsan')
print('%d + %d = %d' %(4, 5, 4 + 5))
print('%o' %10)
print('%x' %100)
print('%f' %27.124)
print('%e' %27.124)
print('%g' %27.124)
# 5 表示占 5个位。1表示保留一位小数点
print('%5.1f' %27.124)
